package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.CurrentAffairs;
import com.sc.nft.entity.vo.CurrentAffairsAdminVO;
import com.sc.nft.entity.vo.CurrentAffairsDetailVo;
import com.sc.nft.entity.vo.CurrentAffairsDetailsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 时政要闻表(sc_current_affairs)数据Mapper
 *
 * @author zhangchao
 * @description 由 Mybatisplus Code Generator 创建
 * @since 2024-03-05 10:52:52
 */
@Mapper
public interface CurrentAffairsMapper extends BaseMapper<CurrentAffairs> {

    Page<CurrentAffairsAdminVO> adminCurrentAffairsVoPage(Page page, @Param("currentAffairsTypeId") Long currentAffairsTypeId, @Param("articleName") String articleName);

    List<CurrentAffairsDetailsVO> getCurrentAffairsRecommend(@Param("id") Long id);

    Page<CurrentAffairsDetailsVO> getCurrentAffairsRecommendPage(Page page, @Param("id") Long id);

    CurrentAffairsDetailsVO currentAffairsAdminDetails(@Param("id") Long id);

    CurrentAffairsDetailVo currentAffairsDetails(@Param("id") Long id);

}
